projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d9a3de
)
print-editor: Fix crash
author
Alexander Larsson
<alexl@redhat.com>
Wed, 13 May 2020 08:18:17 +0000
(10:18 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Wed, 13 May 2020 08:18:17 +0000
(10:18 +0200)
We're trying to g_free a GFile, which is not good...
demos/print-editor/print-editor.c
patch
|
blob
|
history
diff --git
a/demos/print-editor/print-editor.c
b/demos/print-editor/print-editor.c
index 37ea8cf7ca0a9e133281ffc24e8018713d81844e..c2819bf8c9916a253b2def66aad80a4dc217ef49 100644
(file)
--- a/
demos/print-editor/print-editor.c
+++ b/
demos/print-editor/print-editor.c
@@
-583,8
+583,7
@@
activate_new (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
{
- g_free (filename);
- filename = NULL;
+ g_clear_object (&filename);
set_text ("", 0);
}